import type { IllnessTime } from '@/enums'
import { flagOptions, timeOptions } from '@/services/constants'

// 患病时间
export const illnessTimeFn = (illness: IllnessTime) => {
  return timeOptions.find((item) => item.value === illness)?.label
}
// 是否就诊
export const illnessFlagFn = (flag: 0 | 1) => {
  return flagOptions.find((item) => item.value === flag)?.label
}
